package com.lingxu.base.config;

import com.lingxu.base.common.encrypt.SM2StringEncryptor;
import org.jasypt.encryption.StringEncryptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JasyptConfig {
    @Bean("jasyptStringEncryptor")
    public StringEncryptor stringEncryptor() {
        return new SM2StringEncryptor();
    }
}
